package net.airtheva.uniqueTask5;

import android.util.Log;
import android.widget.Toast;

import com.baidu.location.BDLocation;
import com.baidu.location.BDLocationListener;
import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;

public class Application extends android.app.Application {

	public static final String API_KEY_BAIDU = "C14c74fcba35544c55984bfadd18b4ef";
	
	public static final String TAG = "Application";
	
	public LocationClient LocationClient;
	
	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();
		
		LocationClient = new LocationClient(getApplicationContext());
		LocationClient.setAK(API_KEY_BAIDU);
		
		LocationClientOption locationClientOption = new LocationClientOption();
		locationClientOption.setAddrType("all");
		locationClientOption.setCoorType("gcj02");
		locationClientOption.setScanSpan(5000);
		locationClientOption.disableCache(true);
		LocationClient.setLocOption(locationClientOption);
		
	}

}
